#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QNetworkRequest>
#include <QNetworkReply>
#include <QNetworkAccessManager>
#include <QJsonDocument>
#include <QJsonObject>
#include <QJsonArray>
#include <QJsonParseError>
#include <QVector>
#include <QDateTime>
#include <QTreeWidgetItem>
#include "qcustomplot.h"
#include "diseasedata.h"
#include "alldata.h"
#include "render.h"

QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    Ui::MainWindow *ui;
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

protected slots:
    void getData();

private:


    QNetworkRequest request;
    QNetworkAccessManager *manager;
    QNetworkReply *reply;
    QString jsonData;
    QJsonDocument document;
    QJsonParseError parseJsonErr;
    AllData data;
    Render *ren;

    void getRequest();
    void parseJson();
};
#endif // MAINWINDOW_H
